package com.example.menuvirtualclient.core;


public class Table {

	private int id;
	private String name;
	private int status;	
	
	public Table()
	{
		id = 0;
		name = "";
		status = 0;
	}
	
	public Table(int id, String name, int status)
	{
		this.id = id;
		this.name = name;
		this.status = status;
	}
	
	public int getId(){
		return id;
	}
	
	public void setId(int id){
		this.id = id;  
	}
	
	public String getName(){
		return name;
	}
	
	public void setName(String name){
		this.name = name;
	}
	
	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	
	public enum TableStatus
	{
		FREE(1), INUSE(2);
		
		private int value;
		
		TableStatus(int value){
			this.value = value;		
		}
		
		public int getStatusCode(){
			return value;
		}
		
		public String getStatusName(int value){
			switch(value){
				case 1:
					return "LIBRE";
				case 2:
					return "OCUPADA";
				default:
					return "";
			}
		}
	}
}


